<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html id="order">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单添加</title>
    <link href="/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/css/animate.css" rel="stylesheet">
    <link href="/static/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body>
    
<div class="container wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">

<div class="ibox-content">
        <form class="form-horizontal">
                
                        <?php if($status == 5){ ?>
                        <div class="form-group">
                        <label class="col-sm-3 control-label">损耗的金额</label>
                        <div class="col-sm-5">
                            <input id="loss" type="number" v-model="lossPrice" placeholder="请输入损耗的金额" class="form-control">
                         </div>
                         </div>
                         <div class="form-group">
                        <label class="col-sm-3 control-label">损耗的数量</label>
                        <div class="col-sm-5">
                            <input id="loss" type="number" v-model="lossNum" placeholder="请输入损耗的金额" class="form-control">
                         </div>
                         </div>
                         <div class="form-group">
                         <label class="col-sm-3 control-label">填写取消订单的理由</label>
                        <div class="col-sm-5">
                            <input id="memo" type="text" v-model="memo" placeholder="请备注损耗的原因" class="form-control">
                        </div> 
                        </div>
                        <?php }else if($status == 3){?>
                        <div class="form-group">
                        <label class="col-sm-3 control-label">填写取消订单的理由</label>
                        <div class="col-sm-5">
                            <input id="memo" type="text" v-model="memo" placeholder="请备注损耗的原因" class="form-control">
                        </div>    
                        </div>
                        <?php }else if($status == 4){ ?>
                            <!--  -->
                        <?php } ?>
                        
                        <!-- <input type="number" v-model="lossNum" placeholder="请输入损耗的金额" class="form-control"> -->
                   
        
                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-5">
                        <?php if($status == 5){ ?>

                        <button class="btn btn-danger" type="button" @click="CompLoss('<?php echo $id; ?>','<?php echo $status; ?>')">  提  交  </button>
                        <?php }else if($status == 3){?>
                            <button class="btn btn-danger" type="button" @click="cancel('<?php echo $id; ?>','<?php echo $status; ?>')">  提  交  </button>
                        <?php }else if($status == 4){ ?>
                            <!--  -->
                        <?php } ?>
                    </div>
                </div>
        </form>
</div>
</div>
</div>
    <script src="/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/js/layer/layer.js" charset="utf-8"></script>
    <script src="/static/js/vue.js"></script>
    <script src="/static/js/jquery.twbsPagination.js" charset="utf-8"></script>
    <script src="/static/js/order.js" charset="utf-8"></script>
</body>